package wodegua.d29_多线程;

public class MyThread extends Thread {
    public MyThread() {
    }

    public MyThread(String name) {
        super(name);
    }

    @Override
    public void run() {
        Thread c = Thread.currentThread();
        for (int i = 1; i <= 5; i++) {
            System.out.println(c.getName() + "执行====>"+i);
        }
    }
}
